
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'welcome.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
</head>

<body>
<h1>Hello World!</h1>
<hr/>
<br/>
http://127.0.0.1:8080/apitest/ApiServlet?method=query&filePath=E:\\logs.txt&SearchKey=and:lvyanyan,yxj&upLineConunt=0&downLineCount=0&limit=1<br/>
Test : <a href="ApiServlet?method=query&filePath=Test.txt&SearchKey=and:lvyanyan,yxj&upLineConunt=0&downLineCount=0&limit=1" target="_blank">HOST_NAME:HOST_PORT/ApiServlet?method=query&filePath=Test.txt&SearchKey=and:lvyanyan,yxj&upLineConunt=0&downLineCount=0&limit=1</a><br/>
*  @param method	接口方法:query<br/>
*  @param filePath	日志文件路径(服务器日志文件全路径):	E:\\logs.txt<br/>
*  @param SearchKey	搜索关键词(多关键词用,号分割,前缀 and:表示关系和,or:表示关系或):	and:lvyanyan,yxj(或or:lvyanyan,yxj)<br/>
*  @param upLineConunt	关键词上溯行数(匹配结果向上冗余行数):	0<br/>
*  @param downLineCount	关键词下溯行数(匹配结果向下冗余行数):	0<br/>
*  @param limit	关键词匹配结果数(默认倒叙搜索，返回结果数量):	1<br/>
<hr/>
配置文件位置：<br/>
\apitest\src\main\resources\install.properties<br/>
jdbc.driver=com.mysql.jdbc.Driver<br/>
jdbc.url=jdbc:mysql://localhost:3306/demo<br/>
jdbc.usr=root<br/>
jdbc.pwd=root<br/>
is.store.db=false<br/>
<hr/>
若数据库配置正确，可使用下述功能验证：
<a href="login.jsp" target="_blank">用户登录</a>
</body>
</html>
